From: Jim Blandy Date: Fri, 14 May 1993 14:39:15 +0000 (+0000) Subject: * dispnew.c (direct_output_for_insert): Compute the face of the X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~96282 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=517b2e01b32e18c6a2b842686197752e64d430d7;p=emacs.git * dispnew.c (direct_output_for_insert): Compute the face of the character we're inserting properly. --- diff --git a/src/dispnew.c b/src/dispnew.c index 4e17a870942..963cc22cf44 100644 --- a/src/dispnew.c +++ b/src/dispnew.c @@ -875,7 +875,16 @@ direct_output_for_insert (g) || (MINI_WINDOW_P (w) && echo_area_glyphs)) return 0; - current_frame->glyphs[vpos][hpos] = g; + { +#ifdef HAVE_X_WINDOWS + int dummy; + int face = compute_char_face (frame, w, point, &dummy); +#else + int face = 0; +#endif + + current_frame->glyphs[vpos][hpos] = MAKE_GLYPH (g, face); + } unchanged_modified = MODIFF; beg_unchanged = GPT - BEG; XFASTINT (w->last_point) = point;